<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', function(){
        return redirect()->to('admin/wishes');
    });
    $router->resource('wishes', 'WishController');
    $router->resource('sensitives', 'SensitivewordController');
});
